import axios from '@/utils/index.js'

export function getVpsList() {
  return axios({
    url: '/vps/cac',
    method: 'get',
  })
}
export function insertVpsList(data) {
  return axios.post('/vps/insert', data)
}
export function updateVpsList(data) {
  return axios.post('/vps/update', data)
}
export function deleteVpsList(id) {
  return axios.post(`/vps/delete/${id}`)
}
export function batchDeleteVpsList(ids) {
  return  axios.post("/vps/batchDelete",ids)
}
export function conditionVpsList(countryName,cityName) {
  console.log(countryName,cityName);
  return axios.get("/vps/cac", { params:{  countryName,cityName} })
}
export function cityNameVpsList(cityName) {
  console.log(cityName);
  return axios.get("/vps/cityName", { params:{cityName} })
}